﻿using Microsoft.AspNetCore.Mvc;

namespace StarsAdmin.Core.BaseService
{
    public interface IExportOrImportService<TImportInput>
        where TImportInput : class
    {
        /// <summary>
        /// 批量导出
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        Task<FileContentResult?> ExportAsync(long[] ids);

        /// <summary>
        /// 批量导入
        /// </summary>
        /// <param name="inputs"></param>
        /// <returns></returns>
        Task<bool> ImportAsync(List<TImportInput> inputs);
    }
}